package com.coship.vasms.adstorm.dao;

import java.util.List;

import com.coship.vasms.adstorm.model.ADArrange;

public interface ADArrangeDao {

	public void save(ADArrange adarrange);
	
	public void update(ADArrange adarrange);
	
	public void delete(Integer id);
	
	public ADArrange findById(Integer id);
	
	public List<ADArrange> queryByPositionBasicCode(String positionBasicCode);
	/**
	 * 
	 * Description 	: 根据PositionBasicCode和系统时间查询广告排期
	 *
	 * @param positionBasicCode 广告位编码
	 * @param time 系统时间 格式:yyy-MM-dd
	 * @return ADArrange
	 *
	 */
	public ADArrange queryByPositionBasicCodeAndTime(String positionBasicCode,String time);
	
	public List<ADArrange> queryByPositionInfoCode(String positionInfoCode);
	
	public List<ADArrange> queryByAdvertiseId(Integer advertiseId);
	
	public List<ADArrange> queryByTime(String time);
	
	public List<ADArrange> queryAll();
	
	/**
	 * 
	 * Description 	: 更新排期状态
	 *
	 * @param adarrange
	 * @return
	 *
	 */
	int updateArrangeByBasicCode(ADArrange adarrange);

}
